package com.addplus.townmall.server.api.model.town;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城秒杀商品表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("spike_active_shop")
public class SpikeActiveShop extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 商城秒杀活动主键id
     */
    @TableField("spike_active_id")
    private Integer spikeActiveId;
    /**
     * 商城店铺主键id
     */
    @TableField("store_id")
    private Integer storeId;
    /**
     * 商城商品主键id
     */
    @TableField("shop_id")
    private Integer shopId;
    /**
     * 商品sku主键id
     */
    private Integer shopSkuId;
    /**
     * 商城商品名称
     */
    @TableField("shop_name")
    private String shopName;
    /**
     * 商城商品图片url
     */
    @TableField("shop_image")
    private String shopImage;
    /**
     * 商品划线价
     */
    private BigDecimal linePrice;
    /**
     * 商品销售价格
     */
    private BigDecimal salePrice;
    /**
     * 商品库存数量
     */
    private Integer stock;
    /**
     * 限制每人购买的数量
     */
    @TableField("limit_count")
    private Integer limitCount;
    /**
     * 仅仅只计算在限时购里的销售数
     */
    @TableField("sale_count")
    private Integer saleCount;
    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 排序
     */
    private Integer sort;


}
